import miao.demo.config.SpringConfig;
import miao.demo.dao.BookDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    /*
        目标：掌握AOP获取数据
            -获取参数
            -获取返回值
            -获取异常
     */
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookDao bookDao = ctx.getBean(BookDao.class);
        String name = bookDao.findName(10,"小欣");
        System.out.println(name);
    }
}
